package io.qar.orders.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.qar.commons.tools.utils.DateUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import io.qar.commons.mybatis.dto.CreateAndUpdatedDTO;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
* 订单表
*
* @author yyyyjinying 1020066395@qq.com
* @since 3.0 2024-06-11
*/
@Data
@ApiModel(value = "订单表")
public class OrdersDTO extends CreateAndUpdatedDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "订单ID")
    private Long orderId;
    @ApiModelProperty(value = "订单状态")
    private Object statusDescription;
    @ApiModelProperty(value = "用户ID")
    private Long userId;
    @ApiModelProperty(value = "配送地址")
    private String deliveryAddress;
    @ApiModelProperty(value = "下单时间")
    @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
    private Date orderTime;
    @ApiModelProperty(value = "支付完成时间")
    @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
    private Date checkoutTime;
    @ApiModelProperty(value = "支付方式")
    private Object payMethod;
    @ApiModelProperty(value = "支付状态")
    private Object payStatus;
    @ApiModelProperty(value = "订单金额")
    private BigDecimal amount;
    @ApiModelProperty(value = "订单备注")
    private String remark;
    @ApiModelProperty(value = "预计送达时间")
    @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
    private Date deliveryTime;

}